# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-mail-domainkeys
pkgver=1.0
pkgrel=8
pkgdesc="Perl implementation of Yahoo's DomainKeys"
arch=(any)
url="https://search.cpan.org/dist/Mail-DomainKeys"
depends=('perl-crypt-openssl-rsa' 'perl-mailtools' 'perl-net-dns>=0.34')
license=("GPL")
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/A/AN/ANTHONYU/Mail-DomainKeys-$pkgver.tar.gz)
sha256sums=('01b8576d402962e0830a88ac455c1d402a4c9fac388be725dbf08b0632f35851')

build() {
  cd  "$srcdir"/Mail-DomainKeys-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Mail-DomainKeys-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
